package com.qiaofei.mapper;

import com.qiaofei.pojo.Admins;
import org.apache.ibatis.annotations.*;

import java.time.LocalDate;
import java.util.List;

/**
 * 管理员管理
 */
@Mapper
public interface AdminsMapper {

    /**
     * 列表查询
     * @return
     */
    List<Admins> list(String name, Short state, LocalDate begin, LocalDate end);

    int insert(Admins admins);

    int update(Admins admins);

    List<Admins> getByIds(List<Integer> ids);

    void delete(List<Integer> ids);

    Admins getByUsernameAndPassword(Admins admin);
}
